package testing;

public class EarthquakeCode {
    private String administrativeRegionCode;
    private String time;

    public String codeForEarthquakeCode() {
        String time = this.time.replace("-", "").replace(" ", "").replace(":", "");
        String code = administrativeRegionCode + time;
        if (code.length() == 26)
            return administrativeRegionCode + time;
        else
            return null;
    }

    public String getAdministrativeRegionCode() {
        return administrativeRegionCode;
    }

    public void setAdministrativeRegionCode(String administrativeRegionCode) {
        this.administrativeRegionCode = administrativeRegionCode;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
